{% extends "learning_logs/base.html" %}

{% block header %}
    <div class="panel panel-default">
        <div class="panel-heading">
            <h2>{{ topic.text }}</h2>
            <div class="panel-body">
                {{ entry.text|linebreaks }}
            </div>
        </div>
    </div>
{% endblock header %}

{% block content %}
    {% for comment in comments %}
        <div class="panel panel-default">
            <div class="panel-heading">
                <small>{{ comment.ower.username }} 的评论</small>
                <div class="panel-body">
                    {{ comment.text|linebreaks }}
                </div>
                <small>{{ comment.date_added|date:'Y-m-d H:i:s' }}</small>
            </div>
            
        </div>
    {% empty %}
        <small>没有任何评论</small>
    {% endfor %}
{% endblock content %}